Add both the appmenu and the menubar models as children of the
application, if they exist.
gtk_inspector_object_tree_append_object (wt, clock, &iter, "frame-clock");
}
}
+
+ if (GTK_IS_APPLICATION (object))
+ {
+ GObject *menu;
+
+ menu = (GObject *)gtk_application_get_app_menu (GTK_APPLICATION (object));
+ if (menu)
+ gtk_inspector_object_tree_append_object (wt, menu, &iter, "app-menu");
+
+ menu = (GObject *)gtk_application_get_menubar (GTK_APPLICATION (object));
+ if (menu)
+ gtk_inspector_object_tree_append_object (wt, menu, &iter, "menubar");
+ }
}
void